<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="fileLogList" checkbox="false" fitColumns="false" title="文件管理" actionUrl="zyFileLogController.do?datagrid" idField="id" fit="true" queryMode="group" >
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single" width="120"></t:dgCol>
   <t:dgCol title="业务类型"  field="businessType"  dictionary="<%=StaticValue.IMPORT_FILE_TYPE %>"  queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="原文件名"  field="oldFileName"    queryMode="single" query="true" width="120"></t:dgCol>
   <t:dgCol title="新文件名"  field="newFileName"    queryMode="single" width="120"></t:dgCol>
   <t:dgCol title="路径"  field="filePath"    queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="文件类型"  field="fileType"    queryMode="single" query="true" dictionary="<%=StaticValue.DIC_FILE_TYPE %>" width="120"></t:dgCol>
   <t:dgCol title="创建人名称"  field="createName"  hidden="true"   queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="创建人登录名称"  field="createBy"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作时间"  field="createDate" query="true" queryMode="group"  formatter="yyyy-MM-dd hh:mm:ss"  width="120" ></t:dgCol>

   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
	<t:dgFunOpt funname="downloadFile(id)" title="下载" ></t:dgFunOpt>
  </t:datagrid>
  </div>
 </div>
<script type="text/javascript">
$(document).ready(function(){
	$("#fileLogListtb").find("input[name='createDate_begin']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	$("#fileLogListtb").find("input[name='createDate_end']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
});
function downloadFile(id){
	myDownload("fileUploadController.do?downLoadFile&fileLogId="+id+"");
}
</script>